import Vue from 'vue'
import Vuex from 'vuex'
import AdminBreadcrumb from './modules/admin/breadcrumb.js'
import AdminServer from './modules/admin/server.js'
import AdminMenu from './modules/admin/menu.js'
import AdminOrg from './modules/admin/org.js'
import AdminUser from './modules/admin/user.js'
import Config from './modules/config.js'

Vue.use(Vuex)

export default new Vuex.Store({
    modules: {
        config: Config,
        admin: {
            namespaced: true,
            modules: {
                breadcrumb: AdminBreadcrumb,
                server: AdminServer,
                menu: AdminMenu,
                org: AdminOrg,
                user: AdminUser,
            }
        }
    }
})
